<p>&nbsp;</p>
<?php echo anchor(base_url() . 'admin/user/insert', 'Tambah', array('title' => 'Tambah berita.')); ?>
<table width="100%">
    <tr>
        <th width="10">No</th>
        <th>Username</th>
        <th>Status</th>
        <th width="120">Action</th>
    </tr>
    <?php
    if ($user) {
        $i = 1;
        foreach ($user as $value) {
            ?>
            <tr>
                <td><?php echo $i++; ?></td>
                <td><?php echo $value['username'] ?></td>
                <td><?php echo ($value['status'] == '1'?"Active":"Non active"); ?></td>
                <td><?php echo anchor(base_url() . 'admin/user/update/' . $value['id'], 'Edit', array('title' => 'Update berita.')); ?> | <?php echo anchor(base_url() . 'admin/user/delete/' . $value['id'], 'Delete', array('title' => 'Tambah berita.', 'onclick' => "javascript:return confirm('anda yakin ?')")); ?></td>
            </tr>
            <?php
        }
    }
    ?>
</table>
<p>&nbsp;</p>